package com.hc.service;

import com.hc.entity.RoleAuth;
import java.util.List;
import com.hc.utils.PageBean;
import com.hc.utils.PageParam;

public interface RoleAuthService {
    int addRoleAuth(RoleAuth roleAuth);

    int addRoleAuthSelective(RoleAuth roleAuth);

    int batchAddRoleAuth(List<RoleAuth> roleAuthList);

    int deleteRoleAuthById(Integer id);

	int deleteRoleAuthByCondition(RoleAuth roleAuth);

    int batchDeleteRoleAuthByIdList(List<Integer> idList);
	
    int updateRoleAuth(RoleAuth roleAuth);

    int updateRoleAuthSelective(RoleAuth roleAuth);

    long getCount();

    long getCountByCondition(RoleAuth roleAuth);

    RoleAuth getRoleAuthById(Integer id);

    List<RoleAuth> getAllRoleAuth();

	List<RoleAuth> getRoleAuthByCondition(RoleAuth roleAuth);
	
    PageBean<RoleAuth> getRoleAuthWithPagination(PageParam pageParam);

	PageBean<RoleAuth> getRoleAuthWithPaginationByCondition(PageParam pageParam, RoleAuth roleAuth);

    //////////////////////////// 外键相关 /////////////////////////////////////
    List<RoleAuth> getRoleAuthByRole(Integer role);

    //////////////////////////// 外键相关 /////////////////////////////////////
    List<RoleAuth> getRoleAuthByAuth(Integer auth);

}